﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Runtime.InteropServices;

namespace Domain
{
    [Table("GoodsModel")]
    public class GoodsModel:BaseEntity
    {
        /// <summary>
        /// 商品名称
        /// </summary>
        [StringLength(15)]
        public string GoodsName { get; set; }
        /// <summary>
        /// 生产批次
        /// </summary>
        [StringLength(15)]
        public string Order { get; set; }

        /// <summary>
        /// 保质期
        /// </summary>
        public float Expired { get; set; }

        /// <summary>
        /// 生产许可证号
        /// </summary>
        [StringLength(30)]
        public string Allownum { get; set; }

        /// <summary>
        /// 生产企业
        /// </summary>
        [StringLength(15)]
        public string Companyname { get; set; }


        /// <summary>
        /// 封面(图片路径)
        /// </summary>
        public string Cover { get; set; }

        /// <summary>
        /// 检查报告(图片路径)
        /// </summary>
        public string Check { get; set; }

        /// <summary>
        /// 完成状态
        /// </summary>
        [StringLength(15)]
        public string Finiststate { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [StringLength(15)]
        public string Creator { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime Createtime { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        [StringLength(15)]
        public string Modifier { get; set; }

        /// <summary>
        /// 养殖外键
        /// </summary>
        public long Breedid { get; set; }

        /// <summary>
        /// 屠宰外键
        /// </summary>
        public long Killid { get; set; }

        /// <summary>
        /// 深加工外键
        /// </summary>
        public long Deepprocessid { get; set; }


    }
}
